.class final Lcom/ninesky/browser/bu;
.super Lcom/ninesky/browser/cr;


# instance fields
.field private synthetic a:Lcom/ninesky/browser/HistoryActivity;


# direct methods
.method constructor <init>(Lcom/ninesky/browser/HistoryActivity;Landroid/content/Context;Landroid/database/Cursor;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/bu;->a:Lcom/ninesky/browser/HistoryActivity;

    invoke-direct {p0, p2, p3}, Lcom/ninesky/browser/cr;-><init>(Landroid/content/Context;Landroid/database/Cursor;)V

    return-void
.end method


# virtual methods
.method public final getChildView(IIZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    if-eqz p4, :cond_0

    instance-of v0, p4, Lcom/ninesky/browser/view/aa;

    if-nez v0, :cond_1

    :cond_0
    new-instance v0, Lcom/ninesky/browser/view/aa;

    iget-object v1, p0, Lcom/ninesky/browser/bu;->a:Lcom/ninesky/browser/HistoryActivity;

    invoke-direct {v0, v1}, Lcom/ninesky/browser/view/aa;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/ninesky/browser/view/aa;->getPaddingLeft()I

    move-result v1

    add-int/lit8 v1, v1, 0xa

    invoke-virtual {v0}, Lcom/ninesky/browser/view/aa;->getPaddingTop()I

    move-result v2

    invoke-virtual {v0}, Lcom/ninesky/browser/view/aa;->getPaddingRight()I

    move-result v3

    invoke-virtual {v0}, Lcom/ninesky/browser/view/aa;->getPaddingBottom()I

    move-result v4

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/ninesky/browser/view/aa;->setPadding(IIII)V

    :goto_0
    invoke-virtual {p0, p1, p2}, Lcom/ninesky/browser/bu;->a(II)Z

    move-result v1

    if-nez v1, :cond_2

    :goto_1
    return-object v0

    :cond_1
    check-cast p4, Lcom/ninesky/browser/view/aa;

    move-object v0, p4

    goto :goto_0

    :cond_2
    const/4 v1, 0x5

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/bu;->b(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/aa;->a(Ljava/lang/String;)V

    invoke-virtual {p0, v6}, Lcom/ninesky/browser/bu;->b(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/aa;->b(Ljava/lang/String;)V

    invoke-virtual {p0, v5}, Lcom/ninesky/browser/bu;->a(I)I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/ninesky/browser/view/aa;->setId(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/bu;->a()[B

    move-result-object v2

    if-eqz v2, :cond_3

    array-length v1, v2

    invoke-static {v2, v5, v1}, Landroid/graphics/BitmapFactory;->decodeByteArray([BII)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/aa;->a(Landroid/graphics/Bitmap;)V

    :goto_2
    const/4 v1, 0x4

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/bu;->a(I)I

    move-result v1

    if-ne v6, v1, :cond_4

    move v1, v6

    :goto_3
    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/aa;->a(Z)V

    goto :goto_1

    :cond_3
    invoke-static {}, Lcom/ninesky/browser/BookmarkHistoryActivity;->a()Lcom/ninesky/browser/az;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/ninesky/browser/az;->a(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/aa;->a(Landroid/graphics/Bitmap;)V

    goto :goto_2

    :cond_4
    move v1, v5

    goto :goto_3
.end method
